<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="ISO-8859-1"%>
<jsp:include page="templates/header.jsp" flush="true">
	<jsp:param value = "Create Your Account | Quizzard" name = "title" />
</jsp:include>
<jsp:include page="templates/title_bar.jsp" flush = "true">
	<jsp:param value = "Create Your Account" name = "title" />
</jsp:include>
<div id = "content">
<div class = "center">
<%
	String error = (String)request.getAttribute("error");
	if (error != null) {
		out.println("<div id = 'error'>"+error+"</div>");
	}
%>
<p>Join the largest network of quizzers on this side of the oval and learn to Quiz on your friends!</p>
<form method = "post" action = "CreateAccount">
<p><label for = "name">Full name </label><input type = "text" name = "name" />
<p><label for = "username">Username </label><input type = "text" name = "username" /></p>
<p><label for = "password">Password </label><input type = "password" name = "password" /></p>
<p><label for = "is_admin">Is this an administrator account? </label><input type = "checkbox" name = "isAdmin" /></p>
<input type = "submit" value = "Create Account" class = "btn" />
</form>
</div>
</div>
<jsp:include page="templates/footer.jsp" flush="true" />